#!/bin/bash

while true; do
  sudo lsof -p "$1" >>lsof.log
  sleep 5
done
